#ifndef __HEAD_H__
#define __HEAD_H__

#include <stdio.h>
#include <pthread.h>
#include <string.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <sys/msg.h>
#include <stdlib.h>
#include <unistd.h>
#include <sqlite3.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <sys/ioctl.h>

#define type 'k'
#define RED_ON  _IO(type,0)
#define RED_OFF _IO(type,1)
#define GREEN_ON _IO(type,2)
#define GREEN_OFF _IO(type,3)
#define BLUE_ON _IO(type,4)
#define BLUE_OFF _IO(type,5)
#define PWM_ON _IO(type,6)
#define PWM_OFF _IO(type,7)

#define ACCESS_DATA_W  _IOWR(type,0,char *)
#define ACCESS_DATA_R  _IOWR(type,1,char *)

#define STORAGE_NUM 5
#define QUEUE_MSG_LEN 32
#define DATALEN 200
#define STORAGE_STATUS_ON 1
#define ON 1
#define OFF 0
//打开实时监测温湿度等不控制
#define OTHER 2
#define ONE_HUNGER 100

#define SQLITE_OK 0
#endif




